package com.yootk.config;

import com.yootk.vo.Message;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class YootkProfileConfig {

    @Bean
    @Profile("dev")
    public Message devMessage() {
        Message message = new Message();
        message.setPath("dev/yootk.com");
        return message;
    }

    @Bean
    @Profile("test")
    public Message testMessage() {
        Message message = new Message();
        message.setPath("test/yootk.com");
        return message;
    }

    @Bean
    @Profile("product")
    public Message productMessage() {
        Message message = new Message();
        message.setPath("product/yootk.com");
        return message;
    }
}
